﻿@using Db8.Data
@using Db8.ViewModels
@model Claim
<div class="claim-box">

    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.ClaimId)

        <div class="editor-label">
            Claim
        </div>
        <div class="editor-field tweet-length">
            @Html.ValidationMessageFor(model => model.Statement)
            @Html.EditorFor(model => model.Statement)
        </div>

        <div class="editor-label">
            Details (Optional)
        </div>
        <div class="editor-field abstract-length">
            @Html.ValidationMessageFor(model => model.Abstract)
            @Html.EditorFor(model => model.Abstract)
        </div>

        <div class="editor-label">
            Tags
        </div>
        <div class="editor-field">
            @Html.TextBox("Keywords", ViewData["Keywords"])
        </div>
    }

    <br />
    <span class="edit-button" title="Save" post-action="@Url.Action("Edit", "Claim")">
        <img src="@Url.Content("~/images/save.png")" />
    </span>
    <span class="edit-button" title="Delete" load-action="@Url.Action("Delete", "Claim", new { id = Model.ClaimId })">
        <img src="@Url.Content("~/images/close.png")" />
    </span>
    <span class="edit-button" title="Cancel Changes" load-action="@Url.Action("ViewPartial", "Claim", new { id = Model.ClaimId })">
        <img src="@Url.Content("~/images/left.png")" />
    </span>
</div>
<br />